package ru.spb.osll.myfit.server.chart;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import ru.spb.osll.myfit.common.chart.ChartCurve;

import java.awt.*;
import java.util.ArrayList;
import java.util.List;

/**
 * User: Artem Bukhonov
 * Email: nerzhulart@gmail.com
 * Date: 10.11.11
 * Time: 16:56
 */
@XStreamAlias("chart")
public class ChartRenderData {
  @XStreamAlias("curves")
  private List<ChartCurve> m_curves = new ArrayList<ChartCurve>();
  @XStreamAlias("name")
  private String m_name;
  @XStreamAlias("backgroundColor")
  private Color m_backgroundColor = Color.white;
  @XStreamAlias("gridColor")
  private Color m_gridColor = Color.lightGray;
  @XStreamAlias("width")
  private int m_width = 500;
  @XStreamAlias("height")
  private int m_height = 300;
  @XStreamAlias("horizontalLabel")
  private String m_horizontalLabel = "";
  @XStreamAlias("verticalLabel")
  private String m_verticalLabel = "";
  @XStreamAlias("title")
  private String m_title = "";
  
  public ChartRenderData(String name) {
    m_name = name;
  }

  public List<ChartCurve> getCurves() {
    return m_curves;
  }

  public String getName() {
    return m_name;
  }

  public void setName(String name) {
    m_name = name;
  }

  public Color getBackgroundColor() {
    return m_backgroundColor;
  }

  public void setBackgroundColor(Color backgroundColor) {
    m_backgroundColor = backgroundColor;
  }

  public Color getGridColor() {
    return m_gridColor;
  }

  public void setGridColor(Color gridColor) {
    m_gridColor = gridColor;
  }

  public int getWidth() {
    return m_width;
  }

  public void setWidth(int width) {
    m_width = width;
  }

  public int getHeight() {
    return m_height;
  }

  public void setHeight(int height) {
    m_height = height;
  }

  public String getHorizontalLabel() {
    return m_horizontalLabel;
  }

  public void setHorizontalLabel(String horizontalLabel) {
    m_horizontalLabel = horizontalLabel;
  }

  public String getVerticalLabel() {
    return m_verticalLabel;
  }

  public void setVerticalLabel(String verticalLabel) {
    m_verticalLabel = verticalLabel;
  }
  public String getTitle() {
    return m_title;
  }

  public void setTitle(String title) {
    m_title = title;
  }
}
